<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/1/21
  Time: 16:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String adminName=request.getSession().getAttribute("admin")+"";
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:set var="ctx" value="<%=basePath%>"  />
<c:set var="adminName" value="<%=adminName%>"  />
    <html>
    <head>
        <title>后台管理系统</title>

        <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css" />
        <link rel="stylesheet" href="/static/toastr/toastr.min.css">
        <script src="/static/js/jquery.min.js"></script>
        <script src="/static/bootstrap/js/bootstrap.min.js"></script>
        <script src="/static/toastr/toastr.min.js"></script>
        <script src="/static/js/admin/index.js"></script>
        <style type="text/css">
            .navbar{
                background-color: #DEB887;
            }
            /*更改背景颜色*/
          /*  a.list-group-item:hover{
                background-color: #FAF0E6;
            }*/
            /*更改左侧栏目背景颜色*/
            .list-group-item{
                background-color: lavender;
            }
        </style>
        <script type="application/javascript">
            var ctx= '${ctx}';
            var adminName='${adminName}'
            console.info("管理员"+ctx+"管理员名字:"+adminName)
        </script>
    </head>
    <body id="all">
        <nav class="navbar " role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">
                    <a class="navbar-brand" href="#">
                        <!--<img src="img/top.jpg" width="35px" height="30px">-->
                        <img src="/static/img/logoNew.png" width="100px" height="45px" style="margin-top: -10px" />
                    </a>
                </div>
                <div class="collapse navbar-collapse" id="example-navbar-collapse">
                    <ul class="nav navbar-nav">
                        <li>
                                    <span class="navbar-brand">
                                    后台管理系统
                            </span>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a>欢迎[${adminName}]登录</a>
                        </li>
                        <li>
                            <a href="${ctx}admin/aupdata">修改信息</a>
                        </li>
                        <li>
                            <a href = "${ctx}admin/alogout">退出</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>


        <div class="container-fluid" id="bottom">
            <div class="row">
                <div class="col-md-2" id="userMenu" style="height: 500px;">
                    <a href="${ctx}adminHigh/admin_user" target="mainFrame" class="list-group-item">
                        <span class="glyphicon glyphicon-user" aria-hidden="true">
                            </span>用户信息管理</a>
                    <a href="${ctx}adminHigh/admin_bookorder" target="mainFrame" class="list-group-item">
                                <span class="glyphicon glyphicon-cog" aria-hidden="true">
                                </span>消费订单管理</a>
                    <a href="${ctx}adminHigh/admin_review" target="mainFrame" class="list-group-item">
                                <span class="glyphicon glyphicon-comment" aria-hidden="true">
                                </span>用户评论管理</a>
                    <a href="${ctx}adminHigh/admin_business" target="mainFrame" class="list-group-item">
                                <span class="glyphicon glyphicon-align-left" aria-hidden="true">
                            </span>商家信息管理</a>
                    <a href="${ctx}adminHigh/admin_businessInfo" target="mainFrame" class="list-group-item">
                                <span class="glyphicon glyphicon-cog" aria-hidden="true">
                                </span>酒店数据审核</a>
                    <a href="${ctx}adminHigh/admin_integral" target="mainFrame" class="list-group-item">
                                <span class="glyphicon glyphicon-align-center" aria-hidden="true">
                                </span>积分商品管理</a>
                    <a href="${ctx}adminHigh/admin_integral_order" target="mainFrame" class="list-group-item">
                                <span class="glyphicon glyphicon-align-justify" aria-hidden="true">
                                </span>商品订单管理</a>
                    <a href="${ctx}adminHigh/admin_echarts" target="mainFrame" class="list-group-item">
                        <span class="glyphicon glyphicon-stats" aria-hidden="true"></span>统计图表</a>
                    <a href="${ctx}adminHigh/admin_hotelIncome" target="mainFrame" class="list-group-item">
                        <span class="glyphicon glyphicon-jpy" aria-hidden="true"></span>酒店收入统计
                    </a>
                </div>
                <!--右边边菜单栏-->
                <div class="col-md-10" style="height: 510px;" id="content">
                    <iframe src="admin_logo" id="mainFrame" name="mainFrame"
                            scrolling="auto"  frameborder="0" width="100%"  height="100%" frameBorder="0">
                    </iframe>

                </div>
                <!-- 底部页脚部分 -->
                <div class="footer">
                    <p class="text-center">
                        2020&copy; 桃子大帅比.${id};
                    </p>
                </div>
            </div>
        </div>
    </body>
    </html>